package com.financial.sys.service.repayment.impl;

import com.financial.model.pojo.TBorrow;
import com.financial.sys.mapper.repayment.TBorrowMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.financial.sys.service.repayment.TBorrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hzy
 * @since 2020-02-12
 */
@Service
public class TBorrowServiceImpl extends ServiceImpl<TBorrowMapper, TBorrow> implements TBorrowService {

    @Override
    public TBorrow selectBorrowId(String BorrowId) {
        return baseMapper.selectById(BorrowId);
    }

    @Override
    public void updateBorrow(TBorrow TBorrow) {
       baseMapper.updateById(TBorrow);
    }
}
